package cn.iocoder.cloud;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.concurrent.ThreadPoolExecutor;

@Service
public class OrderServiceImpl {

    @Resource
    private ThreadPoolExecutor dtpExecutor;

    public void placeOrder() {
        dtpExecutor.execute(() -> {/* do work */});
    }
}
